<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>绿能充 - 新能源充电系统</title>
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        :root {
            --primary-color: #00a896;
            --secondary-color: #02c39a;
            --dark-color: #05668d;
            --light-color: #f0f3bd;
            --accent-color: #028090;
            --text-dark: #333;
            --text-light: #f8f9fa;
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Noto Sans SC', sans-serif;
            color: var(--text-dark);
            overflow-x: hidden;
            background-color: #f9f9f9;
        }

        /* 封面页面样式 */
        .cover-page {
            height: 100vh;
            background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
            position: relative;
            overflow: hidden;
            padding: 20px;
        }

        .cover-page::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1606229365485-93a3b8ee0385?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center;
            background-size: cover;
            opacity: 0.15;
            z-index: 0;
        }

        .cover-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
            padding: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transform: translateY(0);
            transition: var(--transition);
        }

        .cover-content:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .logo {
            width: 100px;
            height: 100px;
            margin: 0 auto 25px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 40px;
            color: var(--light-color);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        h1 {
            font-size: 3.2rem;
            margin-bottom: 20px;
            font-weight: 700;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
            background: linear-gradient(to right, var(--light-color), #fff);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .tagline {
            font-size: 1.4rem;
            margin-bottom: 30px;
            font-weight: 300;
            opacity: 0.9;
        }

        .features {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .feature {
            display: flex;
            flex-direction: column;
            align-items: center;
            max-width: 150px;
        }

        .feature-icon {
            font-size: 28px;
            margin-bottom: 10px;
            color: var(--light-color);
        }

        .feature-text {
            font-size: 14px;
            opacity: 0.85;
        }

        .enter-btn {
            padding: 16px 50px;
            background: linear-gradient(to right, var(--light-color), var(--secondary-color));
            color: var(--dark-color);
            border: none;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0, 168, 150, 0.3);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .enter-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
            z-index: -1;
            opacity: 0;
            transition: var(--transition);
        }

        .enter-btn:hover {
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 168, 150, 0.4);
        }

        .enter-btn:hover::before {
            opacity: 1;
        }

        /* 登录/注册页面样式 */
        .auth-page {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: #f9f9f9;
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 100;
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .auth-page.active {
            opacity: 1;
            display: flex;
        }

        .auth-container {
            width: 100%;
            max-width: 450px;
            padding: 50px 40px;
            background-color: white;
            border-radius: 15px;
            box-shadow: var(--shadow);
            transform: translateY(20px);
            transition: transform 0.5s ease, opacity 0.5s ease;
            position: relative;
            overflow: hidden;
        }

        .auth-page.active .auth-container {
            transform: translateY(0);
        }

        .auth-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        }

        .auth-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .auth-header h2 {
            color: var(--dark-color);
            margin-bottom: 10px;
            font-size: 2rem;
        }

        .auth-header p {
            color: #777;
            font-size: 0.95rem;
        }

        .auth-logo {
            width: 70px;
            height: 70px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 28px;
            box-shadow: 0 5px 15px rgba(0, 168, 150, 0.3);
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #555;
            font-size: 0.95rem;
        }

        .form-group input {
            width: 100%;
            padding: 14px 15px 14px 45px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 15px;
            transition: var(--transition);
            background-color: #fafafa;
        }

        .form-group input:focus {
            border-color: var(--primary-color);
            outline: none;
            box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.1);
            background-color: white;
        }

        .input-icon {
            position: absolute;
            left: 15px;
            top: 40px;
            color: #999;
            font-size: 18px;
        }

        .auth-btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 10px;
            box-shadow: 0 4px 15px rgba(0, 168, 150, 0.3);
        }

        .auth-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 168, 150, 0.4);
        }

        .switch-auth {
            text-align: center;
            margin-top: 25px;
            font-size: 0.95rem;
            color: #777;
        }

        .switch-auth a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 500;
            margin-left: 5px;
            transition: var(--transition);
        }

        .switch-auth a:hover {
            color: var(--dark-color);
            text-decoration: underline;
        }

        .social-auth {
            margin-top: 30px;
            text-align: center;
        }

        .social-auth p {
            color: #999;
            font-size: 14px;
            margin-bottom: 15px;
            position: relative;
        }

        .social-auth p::before,
        .social-auth p::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30%;
            height: 1px;
            background-color: #eee;
        }

        .social-auth p::before {
            left: 0;
        }

        .social-auth p::after {
            right: 0;
        }

        .social-icons {
            display: flex;
            justify-content: center;
            gap: 15px;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .social-icon:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        }

        .icon-google {
            background-color: #db4437;
        }

        .icon-wechat {
            background-color: #07C160;
        }

        .icon-alipay {
            background-color: #00A0E9;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .cover-content {
                padding: 30px 20px;
                width: 90%;
            }

            h1 {
                font-size: 2.5rem;
            }

            .tagline {
                font-size: 1.2rem;
            }

            .features {
                gap: 20px;
            }

            .auth-container {
                padding: 40px 25px;
                width: 90%;
            }
        }

        /* 动画效果 */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
            100% { transform: translateY(0px); }
        }

        .floating {
            animation: float 6s ease-in-out infinite;
        }

        .particle {
            position: absolute;
            background-color: rgba(255, 255, 255, 0.6);
            border-radius: 50%;
            pointer-events: none;
        }
    </style>
</head>
<body>
<!-- 封面页面 -->
<div class="cover-page" id="coverPage">
    <div class="cover-content floating">
        <div class="logo">
            <i class="fas fa-charging-station"></i>
        </div>
        <h1>绿能充</h1>
        <p class="tagline">智能新能源充电解决方案</p>

        <div class="features">
            <div class="feature">
                <div class="feature-icon">
                    <i class="fas fa-bolt"></i>
                </div>
                <div class="feature-text">快速充电</div>
            </div>
            <div class="feature">
                <div class="feature-icon">
                    <i class="fas fa-leaf"></i>
                </div>
                <div class="feature-text">绿色环保</div>
            </div>
            <div class="feature">
                <div class="feature-icon">
                    <i class="fas fa-map-marker-alt"></i>
                </div>
                <div class="feature-text">智能导航</div>
            </div>
            <div class="feature">
                <div class="feature-icon">
                    <i class="fas fa-shield-alt"></i>
                </div>
                <div class="feature-text">安全可靠</div>
            </div>
        </div>

        <button class="enter-btn" id="enterBtn">
            <a href="/user/register"  class="fas fa-arrow-right" style="margin-right: 8px;">立即体验</a>
        </button>
    </div>

    <!-- 背景粒子效果 -->
    <div id="particles"></div>
</div>
<script>

    // 创建背景粒子效果
    function createParticles() {
        const container = document.getElementById('particles');
        const particleCount = 30;

        for (let i = 0; i < particleCount; i++) {
            const particle = document.createElement('div');
            particle.classList.add('particle');

            // 随机大小
            const size = Math.random() * 5 + 3;
            particle.style.width = `${size}px`;
            particle.style.height = `${size}px`;

            // 随机位置
            particle.style.left = `${Math.random() * 100}%`;
            particle.style.top = `${Math.random() * 100}%`;

            // 随机透明度
            particle.style.opacity = Math.random() * 0.5 + 0.1;

            // 随机动画
            const duration = Math.random() * 20 + 10;
            const delay = Math.random() * 5;
            particle.style.animation = `float ${duration}s ease-in-out ${delay}s infinite`;

            container.appendChild(particle);
        }
    }

    // 页面加载完成后创建粒子
    window.addEventListener('load', createParticles);
</script>
</body>
</html>